<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Spring Boot Stomp</title>
</head>

<body onload="disconnect()">
<div>
    <div>
        <button id="connect" onclick="connect();">连接</button>
        <button id="disconnect" disabled="disabled" onclick="disconnect();">断开连接</button>
    </div>
    <div id="conversationDiv">
        <button id="greeting" onclick="greeting();">greeting</button><br />
        <button id="sendGreeting" onclick="sendGreeting();">sendGreeting</button><br />
        <button id="throwException" onclick="throwException();">throwException</button><br />
        <button id="sendSimpMsg" onclick="sendSimpMsg();">sendSimpMsg</button><br />
        <label>输入你的名字</label><input type="text" id="name" />
        <button id="sendName" onclick="sendName();">发送</button>
        <p id="response"></p>
    </div>
</div>

<!-- jquery  -->
<script src="/websocket/jquery.js"></script>
<!-- stomp协议的客户端脚本 -->
<script src="/websocket/stomp.js"></script>
<!-- SockJS的客户端脚本 -->
<script src="/websocket/sockjs.js"></script>
<script src="/websocket/stomptest.js"></script>

</body>
</html>